package com.ssn.visitor.shop;

public class Customer implements Visitor{
    @Override
    public void visit(Apple apple) {
        System.out.println("顾客将苹果加入购物车");
    }

    @Override
    public void visit(Book book) {
        System.out.println("顾客将书加入购物车");
    }
}
